import { Commit } from "vuex";

interface ICates {
  cid: string;
  name: string;
  image: string;
  banner_img: string;
  banner_url: string;
  floors: [];
}

interface ICate {
  namespaced: boolean;
  state: {
    cates: [];
  };
  actions: {
    getCate: ({ commit }: { commit: Commit }, { cid }: { cid: number }) => void;
  };
  mutations: {
    GET_CATE: (state: any, action: { payload: [] }) => void;
  };
}

export { ICate };
